package main

import (
	"fmt"
	"strconv"
)

func main() {
	//printf 格式化
	name := "bobby"
	age := 18
	fmt.Println("name:" + name + ", age:" + strconv.Itoa(age))
	fmt.Printf("name:%T, age: %T\n", name, age)
	fmt.Printf("name:%s, age:%x,\n ", name, age)
	desc := fmt.Sprintf("name:%s, age:%x,\n ", name, age)
	fmt.Println()
	fmt.Println(desc)

	data := 65
	fmt.Printf("%q\n", data)
	fmt.Printf("%e", 65.1)
}
